<?php
        class game extends model {
           
           function view(){ 
           
          $arraynewdata= $this->getdefault();
            //echo "home";
            if($this->userdata['userid'])
            {
            
           $arraynewdata['cssdata'][]=baseinfo.'/css/theme1/game.css';
           $arraynewdata['myscore']=$this->getmygamnification($this->userdata['userid']);
           $arraynewdata['leaderborad']=$this->getscoreleaderborad($this->userdata['userid']);
           $arraynewdata['badge']=$this->getbadgealldata($this->userdata['userid']);
           $arraynewdata['ruleimg']=$this->getruledata();
       //     $arraynewdata['myscore']=$this->getmyscore($this->userdata['userid']);
            
            $this->loadtemplate('gamepage',$arraynewdata);  
            
            
            }
            
            

            
           }
        
        
        }
?>
